package com.demo.bean;

import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
//import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

public class Paper {

	private Integer id;
	private String name;
	
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//string->java.util.Date
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")//, timezone = "GMT+8")//转成json串
	private Date examTime;
	private Integer questionNums;

	public Paper() {}

	
	public Paper(String name,Integer questionNums) {
		super();
		this.name = name;
		this.questionNums = questionNums;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getExamTime() {
		return examTime;
	}

	public Integer getQuestionNums() {
		return questionNums;
	}

	public void setQuestionNums(Integer questionNums) {
		this.questionNums = questionNums;
	}

	public void setExamTime(Date examTime) {
		this.examTime = examTime;
	}

	@Override
	public String toString() {
		return "Paper [id=" + id + ", name=" + name + ", examTime=" + examTime + ", questionNums=" + questionNums + "]";
	}

}